<?php 

/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Story
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */

return array(

  // ------- on user profile tab

  array(
    'title' => 'Profile Stories',
    'description' => 'Displays a member\'s stories on their profile. It also supports displaying stories that are created by specific page/subject owner, example: when use this widget on Group Profile page, and config User=OWNER mode, it would shows stories created by the group owner. If you set User=VIEWER mode, then the widget will displays stories created by current logged in member.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-stories',
    'defaultParams' => array(
      'title' => 'Stories',
      'titleCount' => true,
      'max' => 5,
      'user_type' => 'owner',
      'order' => 'recent',
      'display_style' => 'wide',
    ),
    'adminForm' => array(
      'description' => 'Displays a member\'s stories on their profile. It also supports displaying stories that are created by specific page/subject owner, example: when use this widget on Group Profile page, and config User=OWNER mode, it would shows stories created by the group owner. If you set User=VIEWER mode, then the widget will displays stories created by current logged in member.',
      'attribs' => array(
        'class' => 'story_widget_form'
      ),
      'elements' => array(
      
        Story_Form_Helper::getContentField('title', array('value' => 'Stories')),
        Story_Form_Helper::getContentField('max', array('value' => 5)),
        Story_Form_Helper::getContentField('user_type', array('value' => 'owner')),
        Story_Form_Helper::getContentField('order'),
        Story_Form_Helper::getContentField('period'),
        
        Story_Form_Helper::getContentField('keyword'),
        Story_Form_Helper::getContentField('company'),
        Story_Form_Helper::getContentField('category'),
        Story_Form_Helper::getContentField('featured'),
        Story_Form_Helper::getContentField('sponsored'),
        Story_Form_Helper::getContentField('display_style'),
        Story_Form_Helper::getContentField('showphoto'),
        Story_Form_Helper::getContentField('showdescription'),
        Story_Form_Helper::getContentField('showmeta'),
        Story_Form_Helper::getContentField('showmemberitemlist'),        
               
      ),
    ),     
  ),
  
  // ------- list stories
  
  array(
    'title' => 'List Stories',
    'description' => 'Displays a list of posted stories with different filtering options (can be used to build variety of story listings such as Recent Stories, Most Commented by XYZ user with specified category etc..)',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.list-stories',
    'defaultParams' => array(
      'title' => 'Stories',
      'titleCount' => true,
      'max' => 5,
      'display_style' => 'wide',
      'order' => 'recent'
    ),  
    'adminForm' => array(
      'attribs' => array(
        'class' => 'story_widget_form'
      ),
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => 'Stories')),
        Story_Form_Helper::getContentField('max'),
        Story_Form_Helper::getContentField('order'),
        Story_Form_Helper::getContentField('period'),
        Story_Form_Helper::getContentField('user'),
        Story_Form_Helper::getContentField('keyword'),
        Story_Form_Helper::getContentField('category'),
        Story_Form_Helper::getContentField('featured'),
        Story_Form_Helper::getContentField('sponsored'),
        Story_Form_Helper::getContentField('display_style'),
        Story_Form_Helper::getContentField('showphoto'),
        Story_Form_Helper::getContentField('showdescription'),
        Story_Form_Helper::getContentField('showmeta'),
        Story_Form_Helper::getContentField('showemptyresult'),
      ),
    ),    
  ),  

  
  // ------- story categories
  
  array(
    'title' => 'Story Categories',
    'description' => 'Displays a list of story categories.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.list-categories',
    'defaultParams' => array(
      'title' => '',
      'showphoto' => 1,
      'showdetails' => 0,
      'descriptionlength' => 68,
    ), 

    'adminForm' => array(
      'attribs' => array(
        'class' => 'story_widget_form'
      ),    
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => '')),
        Story_Form_Helper::getContentField('showphoto', array('value' => 1)),
        Story_Form_Helper::getContentField('showdetails', array('value' => 0)),
        array(
          'Text',
          'descriptionlength',
          array(
            'label' => 'Max Description Characters',
            'value' => 68,
          ),
        ),
      ),   
    ),    
  ),   
  
 
  
  
  // ------- featured stories
  
  array(
    'title' => 'Featured Stories',
    'description' => 'Displays slideshow of featured stories with different filtering options (wide mode)',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.list-featured',
    'defaultParams' => array(
      'title' => 'Featured Stories',
    ),   
    'adminForm' => array(
      'attribs' => array(
        'class' => 'story_widget_form'
      ),    
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => 'Featured Stories')),
        Story_Form_Helper::getContentField('max', array('value' => 5)),
        Story_Form_Helper::getContentField('order', array('value' => 'random')),
        Story_Form_Helper::getContentField('period'),
        Story_Form_Helper::getContentField('user'),
        Story_Form_Helper::getContentField('keyword'),
        Story_Form_Helper::getContentField('category'),
        Story_Form_Helper::getContentField('showphoto'),
        Story_Form_Helper::getContentField('showdescription'),
        Story_Form_Helper::getContentField('showmeta'),
      ),
    ),    
  ),   
  
  // ------- sponsored stories
  
  array(
    'title' => 'Sponsored Stories',
    'description' => 'Displays a list of sponsored stories.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.list-sponsored',
    'defaultParams' => array(
      'title' => 'Sponsored Stories',
      'max' => 5,
    ),   
    'adminForm' => array(
      'attribs' => array(
        'class' => 'story_widget_form'
      ),    
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => 'Sponsored Stories')),
        Story_Form_Helper::getContentField('max', array('value' => 5)),
        Story_Form_Helper::getContentField('order', array('value' => 'random')),
        Story_Form_Helper::getContentField('period'),
        Story_Form_Helper::getContentField('user'),
        Story_Form_Helper::getContentField('keyword'),
        Story_Form_Helper::getContentField('category'),
        Story_Form_Helper::getContentField('showphoto'),
        Story_Form_Helper::getContentField('showdescription'),
        Story_Form_Helper::getContentField('showmeta'),
      ),
    ),  
  ),   

  // ------- top menu nav
  array(
    'title' => 'Menu Stories',
    'description' => 'Displays a menu navigation (Browse Story, My Stories, Post New Story) on story home page.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.list-menu',
  ), 
  
  // ------- search form
  
  array(
    'title' => 'Search Stories',
    'description' => 'Displays search form on story home page.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.list-search',
  ), 
  
  // ------- create new story
  array(
    'title' => 'Post New Story',
    'description' => 'Displays a quick navigation story to post new story',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-new',
  ),    
  
  // ------- popular tags
  
  array(
    'title' => 'Popular Tags',
    'description' => 'Displays story popular tags.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.list-tags',
    'defaultParams' => array(
      'title' => 'Popular Tags',
      'max' => 100,
      'order' => 'text',
    ),
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => 'Popular Tags')),
        Story_Form_Helper::getContentField('max', array('label' => 'Max Tags', 'value' => 100)),
        Story_Form_Helper::getContentField('order', array('value' => 'text', 'multiOptions' => array('text' => 'Tag Name','total' => 'Total Count'))), 
        Story_Form_Helper::getContentField('showlinkall'),              
      ),
    ),     
  ),


  // ------- browse stories
  
  array(
    'title' => 'Browse Stories - List',
    'description' => 'Displays stories on Browse Stories page',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.browse-stories',
  ),  
  
  array(
    'title' => 'Browse Stories - Member',
    'description' => 'Displays member info of current listing member\'s stories on Browse Stories page',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.browse-stories-member',
  ),  
  
  // ------- manage stories
  
  array(
    'title' => 'My Stories - List',
    'description' => 'Displays member stories on (Manage) My Stories page',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.manage-stories',
  ), 

  // ------- manage search
  
  array(
    'title' => 'My Stories - Search',
    'description' => 'Displays search form  on (Manage) My Stories page',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.manage-search',
  ),   
  
  // ------- top submitters
  array(
    'title' => 'Top Story Submitters',
    'description' => 'Displays list of top story\'s submitters',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.top-submitters',
    'defaultParams' => array(
      'title' => 'Top Posters',
      'max' => 5,
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => 'Top Posters')),
        Story_Form_Helper::getContentField('max', array('label' => 'Max Items')),
        Story_Form_Helper::getContentField('period'),
      ),
    ),    
  ), 
  
  
  // ========================= ARTICLE PROFILE WIDGETS (story view page) ===========================
  // ------- story profile body
  array(
    'title' => 'Story - Profile Body',
    'description' => 'Displays an story\'s body on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-body',      
  ), 
  
  // ------- story profile breadcrumb
  array(
    'title' => 'Story - Profile Breadcrumb',
    'description' => 'Displays an story\'s breadcrumb on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-breadcrumb',      
  ), 
  
  // ------- story profile comments
  array(
    'title' => 'Story - Profile Comments',
    'description' => 'Displays an story\'s comments on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-comments',    
    'defaultParams' => array(
      'title' => 'Comments',
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => 'Comments')),
      ),
    ),    
  ),
  
  // ------- story profile description
  array(
    'title' => 'Story - Profile Description',
    'description' => 'Displays an story\'s description on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-description',        
  ), 
  
  // ------- story profile details
  array(
    'title' => 'Story - Profile Details',
    'description' => 'Displays an story\'s details (customized questions/fields data) on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-details',    
    'defaultParams' => array(
      'title' => 'Details',
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => 'Details')),
      ),
    ),    
  ), 
  
  // ------- story profile icon featured
  array(
    'title' => 'Story - Profile Icon Featured',
    'description' => 'Displays a icon for featured story on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-icon-featured',    
    'defaultParams' => array(
      'title' => '',
      'text' => 'FEATURED ARTICLE',
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => '')),
        Story_Form_Helper::getContentField('text', array('label'=>'Icon Text', 'value' => 'FEATURED ARTICLE')),
        Story_Form_Helper::getContentField('image', array('label' => 'Icon Image URL', 'value' => '')),
      ),
    ),    
  ),
  
  // ------- story profile icon sponsored
  array(
    'title' => 'Story - Profile Icon Sponsored',
    'description' => 'Displays a icon for sponsored story on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-icon-sponsored',    
    'defaultParams' => array(
      'title' => '',
      'text' => 'SPONSORED ARTICLE',
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => '')),
        Story_Form_Helper::getContentField('text', array('label'=>'Icon Text', 'value' => 'SPONSORED ARTICLE')),
        Story_Form_Helper::getContentField('image', array('label' => 'Icon Image URL', 'value' => '')),
      ),
    ),    
  ),  
  
  // ------- story profile info
  array(
    'title' => 'Story - Profile Info',
    'description' => 'Displays an story\'s info (owner, category, views, comments etc..) on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-info',      
  ),  
  
  // ------- story profile notice
  array(
    'title' => 'Story - Profile Notice',
    'description' => 'Displays an story\'s system notice such as approval / publish status etc..',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-notice', 
  ),
 
  
  // ------- story profile options
  array(
    'title' => 'Story - Profile Options',
    'description' => 'Displays an story\'s options (sidebar navigation: All Submitter Stories | Post New Story | Edit This Story | Delete This Story) on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-options',    
    'defaultParams' => array(
      'title' => '',
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => '')),
      ),
    ),    
  ),
  
  // ------- story profile photo
  array(
    'title' => 'Story - Profile Photo',
    'description' => 'Displays an story\'s main photo.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-photo',    
    'defaultParams' => array(
      'title' => '',
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => '')),
      ),
    ),    
  ), 
  
  // ------- story profile photos
  array(
    'title' => 'Story - Profile Photos',
    'description' => 'Displays an story\'s photo album / gallery.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-photos',    
    'defaultParams' => array(
      'title' => 'Photos',
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => 'Photos')),
      ),
    ),    
  ),  
  
  // ------- story profile related stories
  array(
    'title' => 'Story - Profile Related Stories',
    'description' => 'Displays an story\'s related stories (by tags) on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-related-stories',    
    'defaultParams' => array(
  	  'titleCount' => true,
      'title' => 'Related Stories',
      'max' => 5,
      'order' => 'random',
    ),  
    'adminForm' => array(
      'attribs' => array(
        'class' => 'story_widget_form'
      ),
      'elements' => array(
      
        Story_Form_Helper::getContentField('title', array('value' => 'Related Stories')),
        Story_Form_Helper::getContentField('max'),
        Story_Form_Helper::getContentField('order', array('value' => 'recent')),
        Story_Form_Helper::getContentField('period'),
        Story_Form_Helper::getContentField('user'),
        Story_Form_Helper::getContentField('keyword'),
        Story_Form_Helper::getContentField('category'),
        Story_Form_Helper::getContentField('featured'),
        Story_Form_Helper::getContentField('sponsored'),        
        Story_Form_Helper::getContentField('showphoto'),
      ),
    ),    
  ),  

  // ------- story profile social shares
  array(
    'title' => 'Story - Profile Social Shares',
    'description' => 'Displays an story\'s social shares such as Facebook, Twitter, Digg using AddThis service on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-social-shares',       
  ),

  // ------- story profile submitter
  array(
    'title' => 'Story - Profile Submitter',
    'description' => 'Displays an story\'s submitter on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-submitter',    
    'defaultParams' => array(
      'title' => 'Submitter',
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => 'Submitter')),
      ),
    ),    
  ),
    
  // ------- story profile tags
  array(
    'title' => 'Story - Profile Tags',
    'description' => 'Displays an story\'s tags on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-tags',    
    'defaultParams' => array(
      'title' => '',
    ),  
    'adminForm' => array(
      'elements' => array(
        Story_Form_Helper::getContentField('title', array('value' => '')),
      ),
    ),    
  ),   
  
  // ------- story profile title
  array(
    'title' => 'Story - Profile Title',
    'description' => 'Displays an story\'s title on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-title',       
  ),
  
  // ------- story profile tools
  array(
    'title' => 'Story - Profile Tools',
    'description' => 'Displays an story\'s tools (Share | Report) on its profile.',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.profile-tools',       
  ),   
  array(
    'title' => 'Create Short Story',
    'description' => 'Create Short Story',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-short-story',
    'defaultParams' => array(
      'title' => 'Short Story',
    ),
  ), 
  array(
    'title' => 'Create Novel Story',
    'description' => 'Create Novel Story',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-novel-story',
    'defaultParams' => array(
      'title' => 'Novel',
    ),
  ),
  array(
    'title' => 'Create Comics Story',
    'description' => 'Create Comics Story',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-comics-story',
    'defaultParams' => array(
      'title' => 'Comics',
    ),
  ),
  array(
    'title' => 'Create Photo Story',
    'description' => 'Create Photo Story',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-photo-story',
    'defaultParams' => array(
      'title' => 'Photo Story',
    ),
  ),
  array(
    'title' => 'Create Poem',
    'description' => 'Create Poem',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-scripts-play',
    'defaultParams' => array(
      'title' => 'Poem',
    ),
  ),
  array(
    'title' => 'Create Article',
    'description' => 'Create Article',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-article',
    'defaultParams' => array(
      'title' => 'Article',
    ),
  ),
  array(
    'title' => 'Create Story Thread',
    'description' => 'Create Story Thread',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-story-thread',
    'defaultParams' => array(
      'title' => 'Story Thread',
    ),
  ),
  array(
    'title' => 'Create Story Privacy',
    'description' => 'Create Story Privacy',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-story-privacy',
    'defaultParams' => array(
      'title' => 'Privacy Settings',
    ),
  ),
  array(
    'title' => 'Create Story Tags and Status',
    'description' => 'Create Story Tags and Status',
    'category' => 'Stories',
    'type' => 'widget',
    'name' => 'story.create-story-tag',
    'defaultParams' => array(
      'title' => 'Tags and Status',
    ),
  ),
  array(
  	'title' => 'Story Category Widget',
  	'description' => 'Story Category Widget',
  	'category' => 'Stories',
  	'type' => 'widget',
  	'name' => 'story.story-categories',
  	'defaultParams' => array(
  			'title' => 'Categories',
  	),
  ),
 
  
  
) ?>